/**  
* @Title: MainMenu.java
* @Package cn.net.mtons.model.entity.vo
* @Description: TODO
* @author ma jinjian  
* @date 2016年1月31日 上午12:51:37
* @version V1.0  
*/ 
package cn.net.mtons.model.entity.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName: MainMenu
 * @Description: TODO
 * @author ma jinjian
 * @date 2016年1月31日 上午12:51:37
 *
 */
public class MainMenuVO extends MtonsVO{

	private long moduleId;
	private String title;
	private List<TreeMenuVO> treeMenu;
	
	public MainMenuVO() {
	}

	public MainMenuVO(String title) {
		this.title = title;
	}

	public void addTreeMenu( TreeMenuVO item ) {
		if ( treeMenu == null ) treeMenu = new ArrayList<TreeMenuVO>();
		this.treeMenu.add( item );
	}
	
	public long getModuleId() {
		return moduleId;
	}
	public void setModuleId(long moduleId) {
		this.moduleId = moduleId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public List<TreeMenuVO> getTreeMenu() {
		return treeMenu;
	}
	public void setTreeMenu(List<TreeMenuVO> treeMenu) {
		this.treeMenu = treeMenu;
	}
	@Override
	public String toString() {
		return "MainMenuVO [moduleId=" + moduleId + ", title=" + title
				+ ", treeMenu=" + treeMenu + "]";
	}
}
